<template>
  <span @click.stop="toTop" class="back-to-top icon-discount"></span>
</template>
<script>
export default {
	methods: {
		//回到顶部
		toTop() {
			this.$emit('onToTop')
		}
	}
}
</script>
<style lang="scss">
@import '../../assets/style/color.scss';
@import '../../assets/style/mixin.scss';
.back-to-top {
  position: fixed;
  z-index: 10;
  bottom: 70px;
  right: 30px;
  background-color: $color-bg-mask-7;
  color: $color-text-7;
  border-radius: 0.125rem;
  font-size: 36px;
  @include center;
}
</style>
